<html>
<head><meta charset="utf-8"><title>accurate goto_def · t-compiler/rust-analyzer · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/index.html">t-compiler/rust-analyzer</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/accurate.20goto_def.html">accurate goto_def</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="176271962"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/accurate%20goto_def/near/176271962" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> csmoe <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/accurate.20goto_def.html#176271962">(Sep 21 2019 at 16:47)</a>:</h4>
<p><span class="user-mention" data-user-id="133169">@matklad</span> whlie invoking a goto_def query with ra_lsp_server, the resp is a bit not accurate.<br>
<a href="/user_uploads/4715/OEWgTZ7yzltBkLFggI_Qnc-v/pasted_image.png" target="_blank" title="pasted_image.png">pasted image</a> <br>
in this case, gotdodef is expected to jump to <code>**/hir/**</code> , but it returns a "fuzzy-search". did I mis-config something?</p>
<div class="message_inline_image"><a href="/user_uploads/4715/OEWgTZ7yzltBkLFggI_Qnc-v/pasted_image.png" target="_blank" title="pasted image"><img src="/user_uploads/4715/OEWgTZ7yzltBkLFggI_Qnc-v/pasted_image.png"></a></div>



<a name="176272021"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/accurate%20goto_def/near/176272021" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/accurate.20goto_def.html#176272021">(Sep 21 2019 at 16:49)</a>:</h4>
<p>Yeah, goto def is not 100% precise yet. This case seems like it should just work. Could you minimize the test case?</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>